package stud.mpgame.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.net.userobject.MapInfoUserObject;

/**
 * Created by IntelliJ IDEA.
 * User: Yarik
 */
public class MapInfoMessageDescription extends MessageDescription {

    private static final int ID = IDescriptionManager.MAP_INFO_MESSAGE_DESCRIPTION;

    private static final int MAP_INFO_USER_OBJECT_ID = 1;

    private static MapInfoMessageDescription instance = null;

    public int getID() {
        return ID;
    }

    private MapInfoMessageDescription() {
        this.registerUserObject(MAP_INFO_USER_OBJECT_ID, MapInfoUserObject.class);
    }

    public static MapInfoMessageDescription getInstance() {
        if(instance == null){
            instance = new MapInfoMessageDescription();
        }
        return instance;
    }

}
